I tested Josh's code and found that it fixes part of this bug.
If you add holdings, create multiple items for a single call number and include an alert as one of the item attributes, the alert is associated with each item and will display correctly the relevant action is taken.
However, if you include an alert as part of an item template and apply this template when creating multiple items as above, the alert is associated only with the first item. The alert does not display for the remaining items relevant action is taken.
I probably should have been more clear in the original bug report that there were two parts to this bug.
I tested Josh's code and found that it fixes part of this bug.
If you add holdings, create multiple items for a single call number and include an alert as one of the item attributes, the alert is associated with each item and will display correctly the relevant action is taken.
However, if you include an alert as part of an item template and apply this template when creating multiple items as above, the alert is associated only with the first item. The alert does not display for the remaining items relevant action is taken.
I probably should have been more clear in the original bug report that there were two parts to this bug.
Tested on EG 3-3-5