a4fee1eef7eda037ee73c118dfcf69a6e742c7ee,modules/s3db/dvr.py,DVRResponseModel,response_status_onaccept,#Any#,1911

Before Change


        // If this status is the default, then set is_default-flag
        // for all other statuses to False:
        if form_vars.get("is_default"):
            db(table.id != record_id).update(is_default = False)

        // If this status is the default closure, then enforce is_closed,
        // and set is_default_closure for all other statuses to False
        if form_vars.get("is_default_closure"):

After Change


        // If this status is the default, then set is_default-flag
        // for all other statuses to False:
        if form_vars.get("is_default"):
            query = (table.is_default == True) & \
                    (table.id != record_id)
            db(query).update(is_default = False)

        // If this status is the default closure, then enforce is_closed,
        // and set is_default_closure for all other statuses to False
        if form_vars.get("is_default_closure"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: sahana/eden
Commit Name: a4fee1eef7eda037ee73c118dfcf69a6e742c7ee
Time: 2019-07-02
Author: dominic@nursix.org
File Name: modules/s3db/dvr.py
Class Name: DVRResponseModel
Method Name: response_status_onaccept


Project Name: sahana/eden
Commit Name: d9b0685dde5ef0633743de17a4452c40ed4842e6
Time: 2019-09-11
Author: fran@aidiq.com
File Name: modules/templates/UCCE/controllers.py
Class Name: dc_TargetName
Method Name: apply_method


Project Name: sahana/eden
Commit Name: 3c8b767af22d97f413673558b4441e86851848c6
Time: 2020-08-27
Author: fran@aidiq.com
File Name: modules/s3db/inv.py
Class Name: S3InventoryTrackingModel
Method Name: inv_track_item_onaccept