Item Price and Acq Cost fields are blank when editing an item
Bug #1713064 reported by
Jason Boyer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
High
|
Unassigned |
Bug Description
Eg 2.12.5
When editing an item in the web client vol/copy editor, the price and acquisition cost fields will be blank regardless of the values in the database. This is because the input is of type "number" which is good but these fields are sent back and forth from the backend as strings and Angular is Very Picky about the types matching. This means you can save a new price or cost value, but you can't see their current values in the editor.
This can be fixed with a custom directive added to the module to format the model as expected but still store the value as a string. Branch coming soon.
Changed in evergreen: | |
milestone: | none → 3.0-alpha |
Changed in evergreen: | |
assignee: | nobody → Galen Charlton (gmc) |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The directive included in this branch can actually be reused elsewhere if need be; it accepts a precision attribute that defaults to 0 (no decimal places). It also makes an effort to not unintentionally set values that should be null to 0.
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=commit; h=f10de92a70e1f 9ec99130399a964 722ac0c7843f