bugGNU Health - Bugs: bug #44893, It is allowed to create Multiple...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44893: It is allowed to create Multiple health professionals with the same License ID

Submitter:  Luis González <luisg123v>
Submitted:  Tue 21 Apr 2015 04:17:34 PM UTC
   
 
Category:  Programming / Tracebacks Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
Module:  health Component:  None

Tue 21 Apr 2015 10:32:38 PM UTC, comment #1: 

I pushed a commit to remove the second call to _setup_ since the first call has the proper constraints (unique name AND unique license id). Thanks for this!

Chris Zimmerman <teffalump>
Tue 21 Apr 2015 04:17:34 PM UTC, original submission:  

Actually, there is already a constraint which should avoid creating various health professionals with the same License ID. Such constraint is not working properly, because class "HealthProfessional" has two methods named "__setup__"; which makes the first method being overridden by the second one.

The simplest fix would be to join all constraints from those two methods into a single one so any constraint is not overridden.

Luis González <luisg123v>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by teffalump (Posted a comment)
  • -email is unavailable- added by luisg123v (Submitted the item)
  • -email is unavailable- added by luisg123v (This is the bug I was trying to submit)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-22 teffalump StatusNone Fixed
    2015-04-21 teffalump Open/ClosedOpen Closed
    2015-04-21 luisg123v Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code