snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Create Asset/Update Asset has different options under Model section

Open joseph707 opened this issue 11 years ago • 5 comments

hi snipe

good morning. I have come across this and not sure if this is an issue.

When I create a new asset, under the Model Section, I see the model as well as the corresponding model number. Screenshot below capture1

But when I try to edit the Model with another model, I don't seem to find the corresponding value. Screenshot below. Is this by design?

2

Thanks for your support and good work.

regards

jo

joseph707 avatar Dec 18 '14 04:12 joseph707

hi snipe

I just figured it out. Required the same array to be mentioned for the Asset update. Just as a reference

under master\app\controllers\admin AssetControllers .php

Old Code - Line 229

    // Grab the dropdown list of models
    $model_list = array('' => '') + Model::orderBy('name', 'asc')->lists('name', 'id');
    $supplier_list = array('' => '') + Supplier::orderBy('name', 'asc')->lists('name', 'id');
    $location_list = array('' => '') + Location::orderBy('name', 'asc')->lists('name', 'id');

New Code - Line 229

    // Grab the dropdown list of models
    //$model_list = array('' => '') + Model::orderBy('name', 'asc')->lists('name', 'id');
    $model_list = array('' => 'Select a Model') + DB::table('models')
    ->select(DB::raw('concat(name," / ",modelno) as name, id'))->orderBy('name', 'asc')
    ->orderBy('modelno', 'asc')
    ->lists('name', 'id');

Hope it helps.

Cheers

Jo

joseph707 avatar Dec 21 '14 13:12 joseph707

hi snipe

good morning. I am sure the process to report this issue is not right but I hope you consider this as an update for your next release. Didn't mention this previously and I closed this way in December.

regards

joseph

joseph707 avatar Feb 24 '15 02:02 joseph707

Hi @joseph707 - we'll definitely try to get that in for Friday's release. In the future, a pull request would have made this a lot easier, and it would have been merged in back in December. :)

snipe avatar Feb 24 '15 02:02 snipe

Hi snipe

Yeah, I should have done that. But will ensure this next time. Learning a lot.

Excellent product. Regards

Sent from my Windows Phone

Joseph Varghese ICT Administrator

Telephone (Direct) :+971 6 5993 202 |Mobile :+971 50 789 5163 |E-mail :[email protected]

Switchboard : +971 6 577 1999; Fax: +971 6 577 1888 | PO Box 68600, Al Mamzar, Sharjah, UAE | Web: www.viss.ae Victoria International School of Sharjah

-----Original Message----- From: snipe Sent: 2/24/2015 6:31 AM To: snipe/snipe-it Cc: Joseph Varghese Subject: Re: [snipe-it] Create Asset/Update Asset has different options under Model section (#423)

Hi @joseph707 - we'll definitely try to get that in for Friday's release. In the future, a pull request would have made this a lot easier, and it would have been merged in back in December. :)

— Reply to this email directly or view it on GitHub.


DISCLAIMER: This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments, check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed in this email are those of the individual sender, and not necessarily those of Victoria International School of Sharjah.

joseph707 avatar Feb 24 '15 02:02 joseph707

No worries :)

snipe avatar Feb 24 '15 02:02 snipe