Fixed product description field name in line edit.

The POST value 'desc' was never evaluated and caused fields to blank
out on update action.
This commit is contained in:
Raphaël Doursenaud 2016-09-13 11:35:16 +02:00
parent 4096981378
commit 1d95720644
No known key found for this signature in database
GPG Key ID: 6992A63407576955

View File

@ -99,7 +99,7 @@ $coldisplay=-1; // We remove first td
$doleditor=new DolEditor('product_desc',$line->description,'',164,$toolbarname,'',false,true,$enable,$nbrows,'98%');
$doleditor->Create();
} else {
print '<textarea id="desc" class="flat" name="desc" readonly style="width: 200px; height:80px;">' . $line->description . '</textarea>';
print '<textarea id="product_desc" class="flat" name="product_desc" readonly style="width: 200px; height:80px;">' . $line->description . '</textarea>';
}
?>
</td>