Version 4.7.6

This commit is contained in:
Neo committed 2025-12-19 16:05:19 -08:00
1 parent 8ba7d43898
commit 7b7404e741
1085 files changed
+30590 -7837

No files matched your search

@@ -251,7 +251,10 @@ class _records extends \IPS\Dispatcher\Controller
try
{
$recordClass::load( \IPS\Request::i()->id )->delete();
$record = $recordClass::load( \IPS\Request::i()->id );
$record->delete();
\IPS\Session::i()->modLog( 'acplogs__cms_deleted_record', array( $record->mapped('title') => FALSE, 'content_db_' . $record->database()->_id => TRUE ) );
}
catch( \OutofRangeException $ex )
{
@@ -314,6 +317,13 @@ class _records extends \IPS\Dispatcher\Controller
if ( $move and $record )
{
$record->move( $values['category'] );
\IPS\Session::i()->log( 'acplogs__cms_moved_record', array(
$record->mapped('title') => FALSE,
$category->_title => TRUE,
$values['category']->_title => TRUE,
$record->database()->_title => TRUE
) );
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=cms&module=databases&controller=records&database_id=' . \IPS\Request::i()->database_id ), 'completed' );
}
@@ -531,6 +541,15 @@ class _records extends \IPS\Dispatcher\Controller
$current->save();
if ( $new )
{
\IPS\Session::i()->log( 'acplogs__cms_added_record', array( $current->mapped('title') => FALSE, $current->database()->_title => TRUE ) );
}
else
{
\IPS\Session::i()->modLog( 'acplogs__cms_edited_record', array( $current->mapped('title') => FALSE, $current->database()->_title => TRUE ) );
}
if ( $changeAuthor )
{
try