Removed product key length limit

This commit is contained in:
Hillel Coren 2015-06-14 11:55:02 +03:00
parent 8b7eace221
commit 839fc6bb75
5 changed files with 5 additions and 5 deletions

View File

@ -356,7 +356,7 @@ define('NINJA_GATEWAY_ID', GATEWAY_STRIPE);
define('NINJA_GATEWAY_CONFIG', '');
define('NINJA_WEB_URL', 'https://www.invoiceninja.com');
define('NINJA_APP_URL', 'https://app.invoiceninja.com');
define('NINJA_VERSION', '2.2.0');
define('NINJA_VERSION', '2.2.1');
define('NINJA_DATE', '2000-01-01');
define('NINJA_FROM_EMAIL', 'maildelivery@invoiceninja.com');
define('RELEASES_URL', 'https://github.com/hillelcoren/invoice-ninja/releases/');

View File

@ -32588,7 +32588,7 @@ function displayInvoiceItems(doc, invoice, layout) {
}
shownItem = true;
var numLines = doc.splitTextToSize(item.notes, 200).length + 2;
var numLines = Math.max(doc.splitTextToSize(item.notes, 200).length, doc.splitTextToSize(item.product_key, 60).length) + 2;
//console.log('num lines %s', numLines);
var y = tableTop + (line * layout.tableRowHeight) + (2 * layout.tablePadding);

View File

@ -1053,7 +1053,7 @@ function displayInvoiceItems(doc, invoice, layout) {
}
shownItem = true;
var numLines = doc.splitTextToSize(item.notes, 200).length + 2;
var numLines = Math.max(doc.splitTextToSize(item.notes, 200).length, doc.splitTextToSize(item.product_key, 60).length) + 2;
//console.log('num lines %s', numLines);
var y = tableTop + (line * layout.tableRowHeight) + (2 * layout.tablePadding);

View File

@ -4,7 +4,7 @@
@parent
{!! Former::open($url)->method($method)
->rules(['product_key' => 'required|max:20'])
->rules(['product_key' => 'required|max:255'])
->addClass('col-md-8 col-md-offset-2 warn-on-exit') !!}

View File

@ -24,7 +24,7 @@
{!! Former::open($url)->method($method)->addClass('warn-on-exit')->rules(array(
'client' => 'required',
'product_key' => 'max:20'
'product_key' => 'max:255'
)) !!}