Feature proposal #1350 » controller.field.patch
administrator/components/com_comprofiler/controller/controller.field.php | ||
---|---|---|
|
||
$_PLUGINS->loadPluginGroup( 'user' );
|
||
|
||
if ( $task == 'reloadField' ) {
|
||
if ( $task == 'copyField' ) {
|
||
if ( $row->sys ) {
|
||
echo "<script type=\"text/javascript\"> alert('" . addslashes( CBTxt::T( 'System fields can not be copied' ) ) . "'); window.history.go(-1); </script>\n";
|
||
exit();
|
||
} elseif ( $row->calculated ) {
|
||
echo "<script type=\"text/javascript\"> alert('" . addslashes( CBTxt::T( 'Calculated fields can not be copied' ) ) . "'); window.history.go(-1); </script>\n";
|
||
exit();
|
||
} else {
|
||
$row->fieldid = 0;
|
||
}
|
||
} elseif ( $task == 'reloadField' ) {
|
||
if ( ! $this->_prov_bind_CB_field( $row, $fid ) ) {
|
||
echo "<script type=\"text/javascript\"> alert('" . $row->getError() . "'); window.history.go(-1); </script>\n";
|
||
exit();
|