[fix] Equipment adding errors.
This commit is contained in:
parent
3e47ba4762
commit
812eccc6fc
3
CHANGES
3
CHANGES
|
@ -8,7 +8,6 @@ For further information about Photo Organizer, see its web site at:
|
|||
|
||||
v2.38 (Unreleased)
|
||||
|
||||
[fix] Newer versions of memcached had issues with our code
|
||||
[misc] Get rid of "IE7" compatibility library.
|
||||
[themes] Use CSS3 to style radio buttons and checkboxes
|
||||
[themes] Use CSS3 drop-shadows for images.
|
||||
|
@ -18,6 +17,8 @@ v2.38 (Unreleased)
|
|||
[themes] Use CSS3 to style slide selection
|
||||
[misc] Better memcache logging
|
||||
[misc] Fix some PHP 5.4-related bugs
|
||||
[fix] Newer versions of memcached had issues with our code
|
||||
[fix] Script errors when adding/editing equipment
|
||||
|
||||
v2.37.1 (December 3, 2012)
|
||||
|
||||
|
|
|
@ -3078,7 +3078,7 @@ function po_log($msg, $level = PEAR_LOG_NOTICE) {
|
|||
}
|
||||
|
||||
function emit_radio_item($name, $value, $checked) {
|
||||
$ret = "<input type=\"radio\" id=\"radio_$name$value\" name=\"$name\" value=\"value\" ";
|
||||
$ret = "<input type=\"radio\" id=\"radio_$name$value\" name=\"$name\" value=\"$value\" ";
|
||||
if ($checked) {
|
||||
$ret .= " checked=\"checked\" ";
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ if ($num > 0) {
|
|||
for ($i=0; $i < $num; $i++) {
|
||||
$r = pg_fetch_assoc($skus, $i);
|
||||
print "<tr>\n";
|
||||
print emit_td(emit_radio_item("sku", $r['identifier'], false)));
|
||||
print emit_td(emit_radio_item("sku", $r['identifier'], false));
|
||||
print "<td><a href=\"$r[m_url]\">$r[name]</a></td>\n";
|
||||
print "<td>$r[model]</td>\n";
|
||||
print "</tr>\n";
|
||||
|
@ -91,7 +91,7 @@ print emit_th($strings['user_web'], "width=\"35%\"");
|
|||
print "</tr>\n";
|
||||
|
||||
print "<tr>\n";
|
||||
print emit_td(emit_radio_item("sku", "custom", true)));
|
||||
print emit_td(emit_radio_item("sku", "custom", true));
|
||||
print emit_td(emit_manufacturer_combo('manufacturer_id', $manufacturer, ""));
|
||||
print "</td>\n";
|
||||
print "<td><input type=\"text\" name=\"model\"/></td>\n";
|
||||
|
|
Loading…
Reference in New Issue