File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public function getActionRequiredParameters()
31
31
'multitasktitles ' => t ('Subtask Title(s) ' ),
32
32
'time_estimated ' => t ('Estimated Time in Hours ' ),
33
33
'duration ' => t ('Duration in days ' ),
34
+ 'check_box ' => t ('Apply to all Columns ' ),
34
35
);
35
36
}
36
37
@@ -100,6 +101,11 @@ public function doAction(array $data)
100
101
101
102
public function hasRequiredCondition (array $ data )
102
103
{
104
+
105
+ if ($ this ->getParam ('check_box ' )) {
106
+ return $ data ['task ' ]['column_id ' ] == $ data ['task ' ]['column_id ' ];
107
+ } else {
103
108
return $ data ['task ' ]['column_id ' ] == $ this ->getParam ('column_id ' );
109
+ }
104
110
}
105
111
}
Original file line number Diff line number Diff line change 21
21
<?php elseif ($ this ->text ->contains ($ param_name , 'user_id ' )): ?>
22
22
<?= $ this ->form ->label ($ param_desc , $ param_name ) ?>
23
23
<?= $ this ->form ->select ('params[ ' .$ param_name .'] ' , $ users_list , $ values ) ?>
24
+ <?php elseif ($ this ->text ->contains ($ param_name , 'check_box ' )): ?>
25
+ <?= $ this ->form ->label (t ('Options ' ), $ param_name ) ?>
26
+ <?= $ this ->form ->checkbox ('params[ ' .$ param_name .'] ' , $ param_desc , 1 ) ?>
24
27
<?php elseif ($ this ->text ->contains ($ param_name , 'project_id ' )): ?>
25
28
<?= $ this ->form ->label ($ param_desc , $ param_name ) ?>
26
29
<?= $ this ->form ->select ('params[ ' .$ param_name .'] ' , $ projects_list , $ values ) ?>
You can’t perform that action at this time.
0 commit comments