| Index
» Projects
» phpMyEdit
» Bug list
» Bug #432 |
 |
|
Viewing Bug Advanced Details |
[ Jump to Bugnotes ]
[ Bug History ]
[ Print ]
|
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
|
0000432 |
extension related |
minor |
always |
2007-01-25 18:49 |
2007-01-25 18:49 |
|
|
|
Reporter |
kinalus |
View Status |
public |
|
|
Assigned To |
|
|
Priority |
normal |
Resolution |
open |
Platform |
|
|
Status |
new |
Duplicate ID |
|
OS |
|
|
Projection |
none |
|
Version |
|
|
ETA |
none |
|
Product Version |
5.6 (stable) |
|
|
Product Build |
|
|
|
Votes |
1 |
|
|
|
Summary |
Class phpMyEdit-mce-cal doesn't include PHP code when using the PHP extension |
|
Description |
When using the phpMyEdit_mce_cal, fields using the PHP extension, (i.e. $opts['fdd']['field']['php'] = 'phpcode.inc') are not displayed properly on operations Add, Change. |
|
Steps To Reproduce |
Declare a field that uses the PHP extension:
<pre>
$opts['fdd']['field']['php'] = 'phpcode.inc'
</pre>
create the file phpcode.inc, e.g.:
<pre>
<?php
$output = "";
if (isset($_POST['PME_sys_operation'])) {
$operation = $_POST['PME_sys_operation'];
} else {
$operation = "";
}
$output.= "Op=".$operation;
$output .= " Value=".$row["qf$k"];
return $output;
?>
</pre>
Then try to change a record, the particular field will not display "Op=Change Value=..." but the usual form input. |
|
Additional Information / Solution |
The appropriate code that handles the PHP extension case is not included in the class code. In functions display_add_record(), display_change_field($row, $k) users can add the following two lines (taken from phpMyEdit.class.php):
<pre>
} elseif ($this->col_has_php($k)) {
echo include($this->fdd[$k]['php']);
</pre>
after lines 388, 460 to correct this problem. |
|
Attached Files |
phpMyEdit-mce-cal.class.php (18,653 bytes) 2007-01-25 18:49 |
|
|
|
There are no notes attached to this bug. |
|
Bug History |
|
Date Modified |
Username |
Field |
Change |
|
2007-01-25 18:49 |
kinalus |
New Bug |
|
|
2007-01-25 18:49 |
kinalus |
File Added: phpMyEdit-mce-cal.class.php |
|
|
2007-01-25 18:52 |
kinalus |
Bug Monitored: kinalus |
|
|
|