AjaxRequest failed when editing a row with date or dateTime columns
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chive |
Fix Released
|
High
|
David Roth |
Bug Description
I get an "Undefined index: id" exception when editing a complete row with at least one date || dateTime column.
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
<html xmlns="http://
<head>
<meta http-equiv=
<title>
PHP Error</title>
</head>
<body>
<h1>PHP Error</h1>
<h3>Description
<p class="message">
Undefined index: id</p>
<h3>Source File</h3>
<p>
/var/www/
<div class="source">
<pre>
00087: echo '<script type="text/
00088: $(document)
00089: $("#' . $this->
00090: });
00091: </script>';
00092: break;
00093:
00094: case 'datetime':
00095: echo CHtml::
00096: echo '<script type="text/
00097: $(document)
00098: now = new Date();
<div class="
</div>00100: });
00101: </script>';
00102: break;
00103:
00104: default:
00105: echo CHtml::
00106: break;
00107: }
00108:
00109: }
00110:
00111: public function getEnumValues()
</pre>
</div><!-- end of source -->
<h3>Stack Trace</h3>
<div class="callstack">
<pre>
#0 /var/www/
#1 /var/www/
#2 /var/www/
#3 /var/www/
#4 /var/www/
#5 /var/www/
#6 /var/www/
#7 /var/www/
#8 /var/www/
#9 /var/www/
#10 /var/www/
#11 /var/www/
#12 /var/www/
#13 /var/www/
#14 /var/www/
#15 /var/www/
#16 /var/www/
#17 /var/www/
#18 /var/www/
#19 /var/www/
</pre>
</div><!-- end of callstack -->
<div class="version">
2010-06-01 08:11:04 Apache/2.2.14 (Ubuntu) <a href="http://
</body>
</html>
Related branches
description: | updated |
Changed in chive: | |
status: | Fix Committed → Fix Released |
The unset $htmlOptions['id'] seems to be the problem here. So this does not work when there are date or dateTime columns.