Fix [ bug 1852 ] JS error when editing a customer order line

This commit is contained in:
Marcos García de La Fuente 2015-06-13 11:46:35 +02:00
parent babd48023f
commit 6514f418e5
2 changed files with 5 additions and 4 deletions

View File

@ -10,6 +10,7 @@ make a Dolibarr upgrade.
***** ChangeLog for 3.7.2 compared to 3.7.1 *****
FIX [ bug #2855 ] Wrong translation key in localtax report page
FIX [ bug #1852 ] JS error when editing a customer order line
***** ChangeLog for 3.7.1 compared to 3.7.* *****
FIX Bug in the new photo system

View File

@ -248,10 +248,10 @@ if (! empty($conf->margin->enabled))
{
?>
$('#savelinebutton').click(function (e) {
return checkEditLine(e, "marginRate");
return checkEditLine(e, "np_marginRate");
});
$("input[name='np_marginRate']:first").blur(function(e) {
return checkEditLine(e, "marginRate");
return checkEditLine(e, "np_marginRate");
});
<?php
}
@ -259,10 +259,10 @@ if (! empty($conf->margin->enabled))
{
?>
$('#savelinebutton').click(function (e) {
return checkEditLine(e, "markRate");
return checkEditLine(e, "np_markRate");
});
$("input[name='np_markRate']:first").blur(function(e) {
return checkEditLine(e, "markRate");
return checkEditLine(e, "np_markRate");
});
<?php
}