projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 5187: Displaying the list of suppliers in the void part is either wrong or buggy...
[fa-stable.git]
/
includes
/
ui
/
ui_input.inc
diff --git
a/includes/ui/ui_input.inc
b/includes/ui/ui_input.inc
index 59a3676ef5664ed7ccc7bd004411ac37c2c824aa..0b59aaaac15cce9fefa937f56d37de597de0cc0a 100644
(file)
--- a/
includes/ui/ui_input.inc
+++ b/
includes/ui/ui_input.inc
@@
-911,7
+911,7
@@
function small_qty_cells($label, $name, $init=null, $params=null, $post_label=nu
//-----------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------
-function textarea_cells($label, $name, $value, $cols, $rows, $title = null, $params="")
+function textarea_cells($label, $name, $value, $cols, $rows, $
max=255, $
title = null, $params="")
{
global $Ajax;
{
global $Ajax;
@@
-922,14
+922,15
@@
function textarea_cells($label, $name, $value, $cols, $rows, $title = null, $par
$value = (!isset($_POST[$name]) ? "" : $_POST[$name]);
echo "<td><textarea name='$name' cols='$cols' rows='$rows'"
.($title ? " title='$title'" : '')
$value = (!isset($_POST[$name]) ? "" : $_POST[$name]);
echo "<td><textarea name='$name' cols='$cols' rows='$rows'"
.($title ? " title='$title'" : '')
+ .($max ? " maxlength=$max" : '')
.">$value</textarea></td>\n";
$Ajax->addUpdate($name, $name, $value);
}
.">$value</textarea></td>\n";
$Ajax->addUpdate($name, $name, $value);
}
-function textarea_row($label, $name, $value, $cols, $rows, $title=null, $params="")
+function textarea_row($label, $name, $value, $cols, $rows, $
max=255, $
title=null, $params="")
{
echo "<tr><td class='label'>$label</td>";
{
echo "<tr><td class='label'>$label</td>";
- textarea_cells(null, $name, $value, $cols, $rows, $title, $params);
+ textarea_cells(null, $name, $value, $cols, $rows, $
max, $
title, $params);
echo "</tr>\n";
}
echo "</tr>\n";
}