/** * Override to pass in the relation Id as the modelId. In the case of lead conversion, the lead->id is the * $modelId. This can then be used for a cancel button to return to the lead detailview. * @param string $controllerId * @param string $moduleId * @param RedsBeanModel $model * @param integer $modelId */ public function __construct($controllerId, $moduleId, $model, $modelId) { assert('is_int($modelId)'); parent::__construct($controllerId, $moduleId, $model); $this->modelId = $modelId; }