Skip to content

Commit

Permalink
Added a clarifying comment
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed May 12, 2020
1 parent f46ecf8 commit bb42109
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Http/Requests/AssetRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public function authorize()
*/
public function rules()
{
// Below, asset_tag is duplicated here and in the model, largely because
// the functional tests will fail because of the way Form Requests work in
// Laravel.
$rules = [
'asset_tag' => 'required|min:1|max:255|unique_undeleted',
'name' => 'max:255|nullable',
Expand All @@ -46,7 +49,7 @@ public function rules()
];

$settings = \App\Models\Setting::getSettings();

if ($this->request->get('model_id') != '') {
$model = AssetModel::find($this->request->get('model_id'));

Expand Down

0 comments on commit bb42109

Please sign in to comment.