From dedf5e6dc2d7204227158a8b07c48d7b68f6b6d2 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 26 Aug 2022 09:14:16 +0800 Subject: [PATCH] * Delete reset file name of story change page. --- module/file/control.php | 1 + module/file/view/printfiles.html.php | 2 +- module/story/view/change.html.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/file/control.php b/module/file/control.php index 36e29ae62e..c8230031b6 100755 --- a/module/file/control.php +++ b/module/file/control.php @@ -314,6 +314,7 @@ class file extends control $this->view->files = $files; $this->view->fieldset = $fieldset; $this->view->object = $object; + $this->view->method = $method; if($method == 'view') return $this->display('file', 'viewfiles'); $this->display(); diff --git a/module/file/view/printfiles.html.php b/module/file/view/printfiles.html.php index ee78a6ecc0..2c621c7413 100644 --- a/module/file/view/printfiles.html.php +++ b/module/file/view/printfiles.html.php @@ -92,7 +92,7 @@ if(common::hasPriv($objectType, 'edit', $object)) { echo "  "; - common::printLink('file', 'edit', "fileID=$file->id", $lang->file->edit, '', "data-width='400' class='fileAction btn btn-link edit iframe text-primary' title='{$lang->file->edit}'"); + if($method != 'storyChange') common::printLink('file', 'edit', "fileID=$file->id", $lang->file->edit, '', "data-width='400' class='fileAction btn btn-link edit iframe text-primary' title='{$lang->file->edit}'"); if(common::hasPriv('file', 'delete')) echo html::a('###', $lang->delete, '', "class='fileAction btn btn-link text-primary' onclick='deleteFile($file->id)' title='$lang->delete'"); echo ''; } diff --git a/module/story/view/change.html.php b/module/story/view/change.html.php index d274aceec6..a5b89ca66f 100644 --- a/module/story/view/change.html.php +++ b/module/story/view/change.html.php @@ -68,7 +68,7 @@ attatch;?> - fetch('file', 'printFiles', array('files' => $files, 'fieldset' => 'true', 'object' => $story, 'method' => 'change'));?> + fetch('file', 'printFiles', array('files' => $files, 'fieldset' => 'true', 'object' => $story, 'method' => 'storyChange'));?> fetch('file', 'buildform');?>