projects
/
ferlib2koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
67efd4a
)
datelastseen
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 19 Jun 2011 11:23:09 +0000
(13:23 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 19 Jun 2011 11:23:09 +0000
(13:23 +0200)
ferlib2koha.pl
patch
|
blob
|
history
diff --git
a/ferlib2koha.pl
b/ferlib2koha.pl
index
aa6ef62
..
fdff596
100755
(executable)
--- a/
ferlib2koha.pl
+++ b/
ferlib2koha.pl
@@
-255,7
+255,8
@@
update items set datelastseen = datelastborrowed
;
update items
join old_issues on items.itemnumber=old_issues.itemnumber
;
update items
join old_issues on items.itemnumber=old_issues.itemnumber
-set datelastseen = returndate where returndate > datelastseen
+set datelastseen = returndate
+where returndate > datelastseen or datelastseen is null
;
update old_issues set timestamp = returndate
});
;
update old_issues set timestamp = returndate
});