Ignore:
Timestamp:
11/18/11 09:33:18 (13 years ago)
Author:
jkraaijeveld
Message:

Edited the pipelineeditor slightly so it does not error when adding a Survey.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/returnStep.php

    r155 r157  
    3939
    4040function processUid($uid) {
     41        $dbi = new DatabaseInterface();
    4142    if ($uid == "123") {        // test case for when steps aren't actually working
    4243        $imageURL = "images/icons/unknowntype.png";
     
    6768            }
    6869
    69             if (result != null) {
     70            if ($result != null) {
    7071                $applications = $dbi->get("Application", array("uid" => $uid));
    7172                if (count($applications) > 0) {
     
    7879            }
    7980
    80             if (result != null) {
     81            if ($result != null) {
    8182                $dashboards = $dbi->get("Dashboard", array("uid" => $uid));
    8283                if (count($dashboards) > 0) {
     
    111112
    112113//echo out the HTML markup
    113                 $responsePart = '<div class="displayStep" id="' . $result->uid . '" onClick="selectStep(this.id);"><div class="displayStepIcon"><img src="' . $imageURL . '" /></div>' . $result->name . '</div>';
     114                $responsePart = '<div class="displayStep" id="' . $result->uid . '" onClick="selectStep(this.id);"><div class="displayStepIcon"><img src="' . $imageURL . '" /></div>' . $result->title . '</div>';
    114115                return $responsePart;
    115116            }
Note: See TracChangeset for help on using the changeset viewer.