Issue #2249723 by andrei.dincu: Add callback function also for publish submit action