projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab2a10
)
allow force unlock / index on holidays
author
Alan Knowles
<alan@roojs.com>
Tue, 4 May 2021 02:59:41 +0000
(10:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 4 May 2021 02:59:41 +0000
(10:59 +0800)
Lock.php
patch
|
blob
|
history
sql/core_holiday.sql
patch
|
blob
|
history
diff --git
a/Lock.php
b/Lock.php
index
b0e7ea9
..
3f1494b
100644
(file)
--- a/
Lock.php
+++ b/
Lock.php
@@
-77,7
+77,7
@@
class Pman_Core_Lock extends Pman
$this->jok("No lock exists"); // been deleted before.. probably ok..
}
- if ($curlock->person_id != $this->authUser->id) {
+ if ($curlock->person_id != $this->authUser->id
&& empty($_REQUEST['force'])
) {
// this is an error conditon..
$this->jerr("Lock id is invalid");
}
diff --git
a/sql/core_holiday.sql
b/sql/core_holiday.sql
index
f0449bb
..
4880851
100644
(file)
--- a/
sql/core_holiday.sql
+++ b/
sql/core_holiday.sql
@@
-7,3
+7,4
@@
ALTER TABLE core_holiday ADD COLUMN holiday_date DATE NOT NULL DEFAULT '0000-00-
ALTER TABLE core_holiday ADD COLUMN country VARCHAR(4) NOT NULL DEFAULT '';
+alter table core_holiday add index lookup (holiday_date, country);