Projekt

Allgemein

Profil

Aktionen

Fehler #184

geschlossen

Fehler bei der Lehrerauswahl

Von Matthias Unterbusch vor etwa 11 Jahren hinzugefügt. Vor etwa 11 Jahren aktualisiert.

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

100%

Geschätzter Aufwand:
Aktionen #1

Von Matthias Unterbusch vor etwa 11 Jahren aktualisiert

  • Kategorie wurde auf Back-End gesetzt
  • Zugewiesen an wurde auf Christian Ehringfeld gesetzt
  • Zielversion wurde auf 1.2 gesetzt

Rolle: Eltern; Aktion: Auswahl eines Lehrers (im trunk getest)

CException


Eigenschaft "DateAndTime.0 ist nicht definiert.

/home/est/public_html/est_trunk/framework/db/ar/CActiveRecord.php(145)

134     public function __get($name)
135     {
136         if(isset($this->_attributes[$name]))
137             return $this->_attributes[$name];
138         elseif(isset($this->getMetaData()->columns[$name]))
139             return null;
140         elseif(isset($this->_related[$name]))
141             return $this->_related[$name];
142         elseif(isset($this->getMetaData()->relations[$name]))
143             return $this->getRelated($name);
144         else
*145             return parent::__get($name);*
146     }
147 
148     /**
149      * PHP setter magic method.
150      * This method is overridden so that AR attributes can be accessed like properties.
151      * @param string $name property name
152      * @param mixed $value property value
153      */
154     public function __set($name,$value)
155     {
156         if($this->setAttribute($name,$value)===false)
157         {

Stack Trace
#0     
+
 /home/est/public_html/est_trunk/framework/db/ar/CActiveRecord.php(145): CComponent->__get("0")
#1     
+
 /home/est/public_html/est_trunk/framework/base/CModel.php(612): CActiveRecord->__get("0")
#2     
–
 /home/est/public_html/est_trunk/protected/controllers/AppointmentController.php(357): CModel->offsetGet(0)

352     public function createMakeAppointmentContent($a_dates, &$a_tabs, &$selectContent, $teacherId, $appointmentId = -1) {
353         $tabsUiId = 0; //id der tabellen, wichtig für Javascriptfunktionen aus custom.js
354         $selectContent = '<select id="form_dateAndTime" name="Appointment[dateAndTime_id]">';
355         foreach ($a_dates as $a_day) {
356             $tabsUiId++;
*357             $tabsName = date(Yii::app()->params['dateFormat'], strtotime($a_day[0]->date->date));*
358             $tabsContent = '<div style="display:none;" id="date-ui-id-' . $tabsUiId . '">' . $tabsName . '</div>'; //verstecktes Element für Javascriptfunktionen aus custom.js
359             $tabsContent .= '<table><thead><th class="table-text" width="40%">Uhrzeit</th><th class="table-text" width="60%">Termin</th></thead><tbody>';
360             $selectContent .= '<optgroup label="' . $tabsName . '">';
361             $datesUiId = 0; //id der einzelnen Zeiten, wichtig für Javascriptfunktionen aus custom.js
362             foreach ($a_day as $key => $a_times) {

#3     
–
 /home/est/public_html/est_trunk/protected/views/appointment/makeAppointment.php(43): AppointmentController->createMakeAppointmentContent(array(DateAndTime, DateAndTime, DateAndTime, DateAndTime, ...), null, "<select id="form_dateAndTime" name="Appointment[dateAndTime_id]"...", "3")

38             Klicken Sie einfach auf ein Feld mit "Verf&uuml;gbar" und best&auml;tigen Sie am Ende der Seite den Termin.
39         </div>
40         <?php
41         $a_tabs = null;
42         $selectContent = null;
*43         $this->createMakeAppointmentContent($a_dates, $a_tabs, $selectContent, $model->user->id);*
44         ?>
45         <div class="js_show">
46         <?php
47         $this->widget('zii.widgets.jui.CJuiTabs',array(
48             'tabs'=>$a_tabs,

#4     
+
 /home/est/public_html/est_trunk/framework/web/CBaseController.php(126): require("/home/est/public_html/est_trunk/protected/views/appointment/make...")
#5     
–
 /home/est/public_html/est_trunk/protected/extensions/yii-debug-toolbar/components/YiiDebugViewRenderer.php(47): CBaseController->renderInternal("/home/est/public_html/est_trunk/protected/views/appointment/make...", array("model" => Appointment), true)

42 
43         if (false !== $this->getIsProxy())
44         {
45             return $this->instance->renderFile($context,$sourceFile,$data,$return);
46         }
*47          return $context->renderInternal($sourceFile,$data,$return);*
48     }
49 
50     public function generateViewFile($sourceFile, $viewFile)
51     {
52         if (false !== $this->getIsProxy())

#6     
+
 /home/est/public_html/est_trunk/framework/web/CBaseController.php(93): YiiDebugViewRenderer->renderFile(AppointmentController, "/home/est/public_html/est_trunk/protected/views/appointment/make...", array("model" => Appointment), true)
#7     
+
 /home/est/public_html/est_trunk/framework/web/CController.php(869): CBaseController->renderFile("/home/est/public_html/est_trunk/protected/views/appointment/make...", array("model" => Appointment), true)
#8     
+
 /home/est/public_html/est_trunk/framework/web/CController.php(782): CController->renderPartial("makeAppointment", array("model" => Appointment), true)
#9     
+
 /home/est/public_html/est_trunk/protected/controllers/AppointmentController.php(158): CController->render("makeAppointment", array("model" => Appointment))
#10     
 unknown(0): AppointmentController->actionMakeAppointment("3")
#11     
+
 /home/est/public_html/est_trunk/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(AppointmentController, array("3"))
#12     
+
 /home/est/public_html/est_trunk/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(AppointmentController, ReflectionMethod, array("r" => "Appointment/makeAppointment", "teacher" => "3"))
#13     
+
 /home/est/public_html/est_trunk/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "Appointment/makeAppointment", "teacher" => "3"))
#14     
+
 /home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)
#15     
+
 /home/est/public_html/est_trunk/framework/web/filters/CFilter.php(40): CFilterChain->run()
#16     
+
 /home/est/public_html/est_trunk/framework/web/CController.php(1145): CFilter->filter(CFilterChain)
#17     
+
 /home/est/public_html/est_trunk/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#18     
+
 /home/est/public_html/est_trunk/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#19     
+
 /home/est/public_html/est_trunk/framework/web/CController.php(291): CFilterChain->run()
#20     
+
 /home/est/public_html/est_trunk/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#21     
+
 /home/est/public_html/est_trunk/framework/web/CWebApplication.php(282): CController->run("makeAppointment")
#22     
+
 /home/est/public_html/est_trunk/framework/web/CWebApplication.php(141): CWebApplication->runController("Appointment/makeAppointment")
#23     
+
 /home/est/public_html/est_trunk/framework/base/CApplication.php(169): CWebApplication->processRequest()
#24     
+
 /home/est/public_html/est_trunk/index.php(30): CApplication->run() 

Aktionen #2

Von Christian Ehringfeld vor etwa 11 Jahren aktualisiert

  • Kategorie wurde von Back-End zu Front-End geändert
  • Zugewiesen an wurde von Christian Ehringfeld zu David Mock geändert
Aktionen #3

Von David Mock vor etwa 11 Jahren aktualisiert

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

Bei mir klappt alles.

Aktionen

Auch abrufbar als: Atom PDF