BUG 6738 Deleting the initial with a case scheduler causes an error
this issue has been fixed, now you can delete a task.
This commit is contained in:
@@ -378,6 +378,10 @@ class Tasks
|
||||
ObjectPermissionPeer::doDelete($oCriteria);
|
||||
//Delete task
|
||||
$oTask->remove($sTaskUID);
|
||||
//Delete cases schedulers added by krlos
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->add(CaseSchedulerPeer::TAS_UID, $sTaskUID);
|
||||
CaseSchedulerPeer::doDelete($oCriteria);
|
||||
}
|
||||
catch (Exception $oError) {
|
||||
throw($oError);
|
||||
|
||||
@@ -1457,7 +1457,7 @@ var processmap=function(){
|
||||
{image:"/images/delete.png",text:G_STRINGS.ID_PROCESSMAP_DELETE_TASK,launch:this.parent.closure({instance:this,method:function(index){
|
||||
var data = this.data.db.task[index];
|
||||
new this.parent.module.app.confirm().make({
|
||||
label:G_STRINGS.ID_PROCESSMAP_CONFIRM_DELETE_TASK+data.label,
|
||||
label:G_STRINGS.ID_PROCESSMAP_CONFIRM_DELETE_TASK+" "+ data.label,
|
||||
action:function()
|
||||
{
|
||||
data.object.drag.flush();
|
||||
@@ -1472,7 +1472,7 @@ var processmap=function(){
|
||||
}.extend(this)
|
||||
});
|
||||
return;
|
||||
if(confirm(G_STRINGS.ID_PROCESSMAP_CONFIRM_DELETE_TASK+data.label))
|
||||
if(confirm(G_STRINGS.ID_PROCESSMAP_CONFIRM_DELETE_TASK+" "+ data.label))
|
||||
{
|
||||
data.object.drag.flush();
|
||||
this.dropables.derivation.unregister(data.object.dropIndex);
|
||||
|
||||
@@ -158,6 +158,7 @@
|
||||
{$form.SCH_START_DAY_OPT_2_WEEKS} {$form.SCH_START_DAY_OPT_2_DAYS_WEEK} <br/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -222,7 +223,7 @@
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="FormButton" colspan="2" align="">{$form.BTNCANCEL} {$form.SAVE}</td>
|
||||
<td class="FormButton" colspan="2" align="">{$form.SAVE} {$form.BTNCANCEL}</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user