[Koha-bugs] [Bug 18725] process_message_queue.pl sends duplicate emails if message_queue is not writable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 6 18:57:24 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18725

--- Comment #23 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I do not understand the trick:

1065         # If this fails the database is unwritable and we won't manage to
send a message that continues to be marked 'pending'
1066         $message_object->status('processing'); # enum: same as empty
string
1067         return unless $message_object->store();
1068         $message_object->status('pending')->store;

Why not simply:

  return unless $message_object->status('pending')->store;

?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list