#check for PATRON_TEMP_RENEWAL
my $searchpenalty_temp = new_editor()->search_actor_user_standing_penalty({
usr => $user->id,
- standing_penalty => 201,
+ standing_penalty => 90,
'-or' => [
{stop_date => undef},
{stop_date => {'>' => 'now'}}
TRUE,
0
);
-INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth) VALUES (201, 'PATRON_TEMP_RENEWAL', 'Patron was given a 30-day temporary account renewal. Please archive this message after the account is fully renewed.', TRUE, 0);
+-- Temp renewal penalty must be under 100 to prevent staff from manually adding it through client interface
+INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth) VALUES (90, 'PATRON_TEMP_RENEWAL', 'Patron was given a 30-day temporary account renewal. Please archive this message after the account is fully renewed.', TRUE, 0);
SELECT SETVAL('config.standing_penalty_id_seq', 100);
BEGIN;
+-- ID has to be under 100 in order to prevent it from appearing as a dropdown in the patron editor.
+
INSERT INTO config.standing_penalty (id, name, label, staff_alert, org_depth)
-VALUES (201, 'PATRON_TEMP_RENEWAL',
+VALUES (90, 'PATRON_TEMP_RENEWAL',
'Patron was given a 30-day temporary account renewal.
Please archive this message after the account is fully renewed.', TRUE, 0
);