* Fixed: #26 98 theme. max column with
* Fixed: #25 98 design. Sort direction select does not show the correct selected option
* Fixed: #23 basic search result order
+ * Fixed: Buledit in 98 theme and default
1.5 - Sacred Passage 2023-05-01
* Added google books parser. See upgrade file for more infos.
-* fix bulkedit
* change multiple-attachment to a field which tells it is used for a image gallery
* update JS and remove deprecations
* complete profile view. Groups still missing.
}
}
- if(DEBUG) Summoner::sysLog("[DEBUG] ".__METHOD__." queryData: ".Summoner::sysLog($queryData));
+ if(DEBUG) Summoner::sysLog("[DEBUG] ".__METHOD__." queryData: ".Summoner::cleanForLog($queryData));
if(!empty($queryData['init']) || ($update !== false && is_numeric($update))) {
</form>
<div class="sunken-panel">
- <table width="100">
+ <table width="100%">
<thead>
<tr>
- <th>View</th>
+ <th width="60px">View</th>
<?php
foreach($TemplateData['collectionFields'] as $f) {
if(in_array($f['id'],$TemplateData['loadedCollection']['advancedSearchTableFields'])) {
--- /dev/null
+<h3 class="uk-h3">Bulkedit these entries in: <a href="index.php?p=colletions&collection<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+
+<?php if(!empty($TemplateData['itemsToWorkWith'])) { ?>
+
+<ul>
+ <?php foreach($TemplateData['itemsToWorkWith'] as $entry) { ?>
+ <li><a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $entry['id']; ?>"><?php echo $entry['title']; ?></a></li>
+ <?php } ?>
+</ul>
+
+<form class="maxSizeForm" method="post" enctype="multipart/form-data">
+ <?php foreach($TemplateData['itemsToWorkWith'] as $entry) { ?>
+ <input type="hidden" name="bulkedit[]" value="<?php echo $entry['id']; ?>" />
+ <?php } ?>
+
+<?php
+ foreach($TemplateData['editFields'] as $field) {
+ $field['bulkedit'] = true;
+ $_editFieldView = Summoner::themefile('manageentry/field-'.$field['type'].'.html', UI_THEME);
+ if(file_exists($_editFieldView)) {
+ require $_editFieldView;
+ }
+ else {
+ require $TemplateData['_editFieldViewDefault'];
+ }
+ }
+?>
+ <div class="field-row-stacked">
+ <input type="submit" name="submitForm" value="Save">
+ </div>
+
+</form>
+<script type="text/javascript" src="view/default/ui/js/suggest-tag.js"></script>
+<?php } ?>
}
if (!empty($_search) && Summoner::validate($_search)) {
- if (strstr($_search, ':')) { // field search
+ if (str_contains($_search, ':')) { // field search
$_matches = array();
if(preg_match_all("/(\p{L}+:)(?(?!\p{L}+:).)*/u",$_search, $_matches) !== false && !empty($_matches[0])) {
// $matches[0] has the identifier: and text
switch ($data['bulkeditMethod']) {
case 'add':
if(is_array($entry[$ident])) { // lookup multiple
- $data['valueToSave'] = implode(",", $entry[$ident]) . $data['valueToSave'];
- }
+ $data['valueToSave'] = implode(",", $entry[$ident]).",".$data['valueToSave'];
+ }
else {
- $data['valueToSave'] = $entry[$ident] . $data['valueToSave'];
+ $data['valueToSave'] = $entry[$ident].' '.$data['valueToSave'] ;
}
break;
} else {
$_messages[] = "Entry could not be updated. See log for more details: ".$entry['id'];
}
+
+ unset($data);
}
$TemplateData['message']['content'] = implode("<br />",$_messages);