[bugfix] Daemon: Do not un-initialize controller no_result_url
* src/server/daemon/Daemon.js (getProgramController): Do not initialize `no_results_url' to an empty string if not provided; instead, keep any existing value. Otherwise, later calls with no arguments will clear previously-set values. DEV-3254master
parent
003a58dbbb
commit
2b93a0bbe4
|
@ -183,12 +183,24 @@ module.exports = AbstractClass( 'Daemon',
|
|||
},
|
||||
|
||||
|
||||
/**
|
||||
* Get (and initialize) controller
|
||||
*
|
||||
* The controller will only be initialized with the session key SKEY and
|
||||
* all-submit notification URL NO_RESULTS_URL if they are provided,
|
||||
* respectively.
|
||||
*
|
||||
* @param {string=} skey session key
|
||||
* @param {no_results_url=} no_results_url URL for all-submit notification
|
||||
*
|
||||
* @return {Object} controller
|
||||
*/
|
||||
'protected getProgramController': function( skey, no_results_url )
|
||||
{
|
||||
var controller = require( './controller' );
|
||||
|
||||
controller.rater = this._rater;
|
||||
controller.no_results_url = no_results_url || "";
|
||||
controller.no_results_url = no_results_url || controller.no_results_url;
|
||||
|
||||
if ( skey )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue