mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor adjustments
This commit is contained in:
parent
2c25371011
commit
192722b7a4
@ -198,6 +198,18 @@ class Request extends FormRequest
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($input['public_notes']))
|
||||
$input['public_notes'] = str_replace("</","<-", $input['public_notes']);
|
||||
|
||||
if(isset($input['footer']))
|
||||
$input['footer'] = str_replace("</", "<-", $input['footer']);
|
||||
|
||||
if(isset($input['terms']))
|
||||
$input['terms'] = str_replace("</", "<-", $input['terms']);
|
||||
|
||||
if(isset($input['private_notes']))
|
||||
$input['private_notes'] = str_replace("</", "<-", $input['private_notes']);
|
||||
|
||||
return $input;
|
||||
}
|
||||
|
||||
|
@ -89,6 +89,10 @@ class StoreVendorRequest extends Request
|
||||
$input['currency_id'] = $user->company()->settings->currency_id;
|
||||
}
|
||||
|
||||
if (isset($input['name'])) {
|
||||
$input['name'] = strip_tags($input['name']);
|
||||
}
|
||||
|
||||
$input = $this->decodePrimaryKeys($input);
|
||||
|
||||
$this->replace($input);
|
||||
|
@ -92,8 +92,8 @@ class UpdateVendorRequest extends Request
|
||||
{
|
||||
$input = $this->all();
|
||||
|
||||
if (array_key_exists('assigned_user_id', $input) && is_string($input['assigned_user_id'])) {
|
||||
$input['assigned_user_id'] = $this->decodePrimaryKey($input['assigned_user_id']);
|
||||
if (isset($input['name'])) {
|
||||
$input['name'] = strip_tags($input['name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('country_id', $input) && is_null($input['country_id'])) {
|
||||
|
@ -74,6 +74,12 @@ trait CleanLineItems
|
||||
|
||||
}
|
||||
|
||||
if(isset($item['notes']))
|
||||
$item['notes'] = str_replace("</", "<-", $item['notes']);
|
||||
|
||||
if(isset($item['product_key']))
|
||||
$item['product_key'] = str_replace("</", "<-", $item['product_key']);
|
||||
|
||||
}
|
||||
|
||||
if (array_key_exists('id', $item) || array_key_exists('_id', $item)) {
|
||||
|
@ -170,7 +170,7 @@ span {
|
||||
</button>
|
||||
|
||||
<div id="notes" class="py-10 border-b-2 border-fuschia-600" x-show="show_notes">
|
||||
{!! html_entity_decode($entity->public_notes) !!}
|
||||
{!! html_entity_decode(e($entity->public_notes)) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user