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/classes/AnswerConnector.php

    r149 r157  
    5555                $this->load();
    5656                $keys = array_keys($arguments);
    57                 $uid = "?uid"; $question = "?question_code"; $value     = "";
     57                $uid = ""; $question = ""; $value = "";
    5858                if(in_array("uid", $keys))
    59                         $uid = '\''.$arguments["uid"].'\'';
     59                        $uid = 'predicates:uid \''.$arguments["uid"].'\'';
    6060                if(in_array("question", $keys))
    61                         $question = '\''.$arguments["question"].'\'';
     61                        $question = 'predicates:question_code \''.$arguments["question"].'\'';
    6262                if(in_array("values", $keys))
    6363                {
     
    7777
    7878                                predicates:uid ?uid ;
    79                                 predicates:question_code ?question_code;
    80 
    81                                 predicates:uid ' . $uid . '
    82                                 predicates:question_code ' . $question . '     
    83                                 ' . $value . '
     79                                predicates:question_code ?question_code ;
     80                                ' . $uid . $question . $value . '
    8481                        }';
    8582
Note: See TracChangeset for help on using the changeset viewer.