bikalims / bika.lims

Open Source Web-based Laboratory Information Management System
http://www.bikalims.org
Other
223 stars 168 forks source link

Analysis category should be optional for ASs #636

Closed lemoene closed 10 years ago

lemoene commented 11 years ago

The lab offers 3 Analysis Services (AS) and categories are not necessary.

At the moment the AS create form has it set to compulsory and i cannot leave it blank. the Categories should be optional.

http://bika_test.puritylabsinc.com/bika_setup/bika_analysisservices/portal_factory/AnalysisService/analysisservice.2013-03-14.0172327214/base_edit

xispa commented 11 years ago
xispa commented 11 years ago

Categories still appear in addAR form, because the behaviour is controled by ajax (js/add_ar.js): the ASs are loaded dynamically when Analysis Category is checked instead of being loaded directly by the template (browser/templates/ar_add.pt). Two feasible works-arounds:

lemoene commented 11 years ago

in the addAR form we could probably get away (for now) with the client preference settings at http://bika_test.puritylabsinc.com/clients/client-2/base_edit or with AR templates or Profiles

Do not lose too much time on it now?

lemoene commented 11 years ago

At the moment I cannot clear the Category field for an existing AS

e.g. http://bika_test.puritylabsinc.com/bika_setup/bika_analysisservices/analysisservice-1. When I empty the Category field and save the AS, it is again saved with the category 'Liquid chromatography' though it was not selected.

The categories drop-down on the AS should offer some sort of 'None' option?

lemoene commented 10 years ago

expired