Projekt

Allgemein

Profil

Aktionen

Fehler #236

geschlossen

kein est erstellt, lehrer und elternteil mit gruppe

Von David Mock vor fast 11 Jahren hinzugefügt. Vor fast 11 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Kategorie:
Back-End
Zielversion:
Beginn:
06.05.2013
Abgabedatum:
% erledigt:

100%

Geschätzter Aufwand:

Beschreibung

Object of class Group could not be converted to string

E:\xampp\htdocs\est\trunk\src\framework\db\schema\CDbCriteria.php(417)

405      * @return CDbCriteria the criteria object itself
406      * @since 1.1.1
407      */
408     public function compare($column, $value, $partialMatch=false, $operator='AND', $escape=true)
409     {
410         if(is_array($value))
411         {
412             if($value===array())
413                 return $this;
414             return $this->addInCondition($column,$value,$operator);
415         }
416         else
417             $value="$value";
418 
419         if(preg_match('/^(?:\s*(<>|<=|>=|<|>|=))?(.*)$/',$value,$matches))
420         {
421             $value=$matches[2];
422             $op=$matches[1];
423         }
424         else
425             $op='';
426 
427         if($value==='')
428             return $this;
429 
Stack Trace
#0    
–  E:\xampp\htdocs\est\trunk\src\protected\controllers\AppointmentController.php(393): CDbCriteria->compare("groups.id", Group, true, "AND")
388                 $criteria->order = 'date ASC';
389                 $group = Yii::app()->user->getState('group');
390                 if (!$group) {
391                     $group = "string";
392                 }
393                 $criteria->compare('groups.id', $group, true, 'AND');
394                 $criteria->addCondition('date >="' . date('Y-m-d', time()) . '"');
395                 $a_dates = Date::model()->findAll($criteria);
396             } else {
397                 $a_dates = Date::model()->findAll(array('limit' => $dateMax, 'order' => 'date ASC', 'condition' => 'date >="' . date('Y-m-d', time()) . '"'));
398             }
#1    
–  E:\xampp\htdocs\est\trunk\src\protected\controllers\AppointmentController.php(202): AppointmentController->getDatesWithTimes(3)
197         $model = new Appointment;
198         $model->unsetAttributes();
199         $model->user_id = $teacher;
200         $postDate = '';
201         $postTime = '';
202         $a_dates = $this->getDatesWithTimes(3); //Magic Number: nur die nächsten 3 Elternsprechtage werden geladen.
203         $a_tabs = $this->createMakeAppointmentContent($a_dates, $model->user->id);
204         switch (count($a_tabs)) {
205             case 1:
206                 $columnCount = 'twelve';
207                 break;
#2    
 unknown(0): AppointmentController->actionMakeAppointment("3")
#3    
+  E:\xampp\htdocs\est\trunk\src\framework\web\actions\CAction.php(108): ReflectionMethod->invokeArgs(AppointmentController, array("3"))
#4    
+  E:\xampp\htdocs\est\trunk\src\framework\web\actions\CInlineAction.php(47): CAction->runWithParamsInternal(AppointmentController, ReflectionMethod, array("r" => "Appointment/makeAppointment", "teacher" => "3"))
#5    
+  E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(308): CInlineAction->runWithParams(array("r" => "Appointment/makeAppointment", "teacher" => "3"))
#6    
+  E:\xampp\htdocs\est\trunk\src\framework\web\filters\CFilterChain.php(133): CController->runAction(CInlineAction)
#7    
+  E:\xampp\htdocs\est\trunk\src\framework\web\filters\CFilter.php(40): CFilterChain->run()
#8    
+  E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(1145): CFilter->filter(CFilterChain)
#9    
+  E:\xampp\htdocs\est\trunk\src\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#10    
+  E:\xampp\htdocs\est\trunk\src\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#11    
+  E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(291): CFilterChain->run()
#12    
+  E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#13    
+  E:\xampp\htdocs\est\trunk\src\framework\web\CWebApplication.php(282): CController->run("makeAppointment")
#14    
+  E:\xampp\htdocs\est\trunk\src\framework\web\CWebApplication.php(141): CWebApplication->runController("Appointment/makeAppointment")
#15    
+  E:\xampp\htdocs\est\trunk\src\framework\base\CApplication.php(169): CWebApplication->processRequest()
#16    
–  E:\xampp\htdocs\est\trunk\src\index.php(30): CApplication->run()
25 defined('YII_DEBUG') or define('YII_DEBUG', true);
26 // specify how many levels of call stack should be shown in each log message
27 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
28 
29 require_once($yii);
30 Yii::createWebApplication($config)->run();
Aktionen #1

Von Christian Ehringfeld vor fast 11 Jahren aktualisiert

Bitte testen

Aktionen #2

Von Christian Ehringfeld vor fast 11 Jahren aktualisiert

In deiner app.js ist jetzt en Konflikt Z. 3-5

Aktionen #3

Von David Mock vor fast 11 Jahren aktualisiert

?

Aktionen #4

Von David Mock vor fast 11 Jahren aktualisiert

z3-5 steht nur:

        var $doc = $(document),
                Modernizr = window.Modernizr;

da hab ich auch nichts dran verändert.
fehler ist jetzt auch weg

Aktionen #5

Von Christian Ehringfeld vor fast 11 Jahren aktualisiert

is auch garkein konflikt...

guck mal rein

http://h1963533.stratoserver.net/redmine/projects/est/repository/revisions/579/diff/trunk/src/js/custom.js

du hast den konflikten part commitet

Aktionen #6

Von Christian Ehringfeld vor fast 11 Jahren aktualisiert

  • Status wurde von Neu zu Erledigt geändert
  • % erledigt wurde von 0 zu 100 geändert
Aktionen

Auch abrufbar als: Atom PDF