* [feedback#8123,done,0.2h] append workflow fields to post.

This commit is contained in:
sunguangming
2024-12-31 11:13:16 +08:00
committed by 朱金勇
parent 7ca36a8813
commit d0925d45d3
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -418,6 +418,20 @@ class baseEntry
public function batchSetPost(string $fields, $object = '')
{
$fields = explode(',', $fields);
/* Append flow fields to post. */
if($this->config->edition != 'open')
{
$fieldList = $this->loadModel('workflowaction')->getPageFields($this->app->rawModule, $this->app->rawMethod, true, null, 0, 0);
if(!empty($fieldList))
{
foreach($fieldList as $field)
{
if(!in_array($field->field, $fields)) $fields[] = $field->field;
}
}
}
foreach($fields as $field)
{
/*