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

Submitted by:  Luis González <luisg123v>
Submitted on:  Tue 21 Apr 2015 04:17:34 PM UTC  
 
Category: Programming / TracebacksSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Module: health

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>
Project Member
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 22 Apr 2015 02:25:58 AM UTCteffalumpStatusNone=>Fixed
    Tue 21 Apr 2015 10:32:38 PM UTCteffalumpOpen/ClosedOpen=>Closed
    Tue 21 Apr 2015 04:17:35 PM UTCluisg123vCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1