marking a task as 'not done' 'done' etc. will now clear the 'in progress' state
This commit is contained in:
parent
dfe11f6d03
commit
90af44e959
4
t.sh
4
t.sh
|
@ -875,7 +875,7 @@ function unfold() {
|
|||
function clearstatus() {
|
||||
local file
|
||||
file="$1"
|
||||
[[ -e $file ]] && sed -i '/^COMPLETED:/d;/^STATUS:COMPLETED/d;/PERCENT-COMPLETE:/d;/^STATUS:IN-PROCESS:/d;/^STATUS:NEEDS-inform/d;/^$/d;/^REQUEST-STATUS:/d;' "$file"
|
||||
[[ -e $file ]] && sed -i '/^COMPLETED:/d;/^STATUS:COMPLETED/d;/PERCENT-COMPLETE:/d;/^STATUS:IN-PROCESS:/d;/^STATUS:NEEDS-inform/d;/^$/d;/^REQUEST-STATUS:/d;/^STATUS:IN-PROCESS/d' "$file"
|
||||
}
|
||||
|
||||
function markblocked() { # $1=uid $2=reason
|
||||
|
@ -886,7 +886,7 @@ function markblocked() { # $1=uid $2=reason
|
|||
id=$(getid $uid)
|
||||
[[ $# -gt 1 ]] && ischild=1 || ischild=0
|
||||
[[ $ischild -eq 1 ]] && noun=subtask || noun=task
|
||||
# already in progress?
|
||||
# already blocked?
|
||||
if [[ ${taskchecked[$id]} -eq 3 ]]; then
|
||||
if [[ ${taskblockreason[$id]} == "$reason" ]]; then
|
||||
error "$noun #${id} is already blocked"
|
||||
|
|
Loading…
Reference in New Issue