Version 5.0.0 beta 10

This commit is contained in:
Neo committed 2025-12-19 17:53:48 -08:00
1 parent 56979f8ee8
commit 264eeb97e0
325 files changed
+6442 -1849

No files matched your search

@@ -796,6 +796,12 @@ class Category extends Model implements Permissions
Lang::deleteCustom( 'downloads', $langKey );
}
/* Unclaim Attachments */
foreach( [ 'description', 'disclaimer', 'subt', 'npv' ] as $id3 )
{
SystemFile::unclaimAttachments( 'downloads_Categories', $this->_id, null, $id3 );
}
if( $this->card_image )
{
try
@@ -889,6 +895,23 @@ class Category extends Model implements Permissions
Lang::saveCustom( 'downloads', $langKey, iterator_to_array( Db::i()->select( 'word_custom, lang_id', 'core_sys_lang_words', array( 'word_key=?', $oldLangKey ) )->setKeyField( 'lang_id' )->setValueField('word_custom') ) );
}
/* If the description had attachments, link them */
$attachmentMappings = [];
foreach( Db::i()->select( '*', 'core_attachments_map', [
[ 'location_key=?', 'downloads_Categories' ],
[ 'id1=?', $oldId ],
[ 'id2 is null' ],
[ Db::i()->in( 'id3', [ 'description', 'disclaimer', 'subt', 'npv' ] ) ]
] ) as $attachment )
{
$attachment['id1'] = $this->_id;
$attachmentMappings[] = $attachment;
}
if( count( $attachmentMappings ) )
{
Db::i()->insert( 'core_attachments_map', $attachmentMappings );
}
if ( $oldGridImage )
{
try
@@ -2855,8 +2855,6 @@ Filter
return FALSE;
}
public static string $itemMenuKey ='file_actions';
public static string $itemMenuCss = '';
/**