srchub

srchub Commit Details


Date:2013-08-11 17:15:05 (11 years 8 months ago)
Author:Natalie Adams
Branch:master
Commit:5940f965a6fb7c30083e6ed9ee09eb09878d5bf3
Parents: a7e1392f53d07e4827dff0b901b5cf2f3a0e2392
Message:Fixing an issue with project activity FK constraints when deleting a project.

Changes:

File differences

indefero/src/IDF/Form/Admin/ProjectDelete.php
8080
8181
8282
83
84
85
86
8387
8488
8589
        // So, we drop the project, it will cascade and delete all the
        // elements of the project. For large projects, this may use
        // quite some memory.
        // This is to fix a FK constraint
        $this->project->current_activity = null;
        $this->project->update();
        $this->project->delete();
        return true;
    }

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.14578s using 14 queries.