Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
01582f4e
Commit
01582f4e
authored
Feb 03, 2023
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台评论增加修改评论时间功能
parent
f1a30a97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
app/code/Amasty/AdvancedReview/Plugin/Review/Block/Adminhtml/Edit/Form.php
+1
-0
app/code/Magento/Review/Block/Adminhtml/Edit/Form.php
+9
-0
No files found.
app/code/Amasty/AdvancedReview/Plugin/Review/Block/Adminhtml/Edit/Form.php
View file @
01582f4e
...
@@ -101,6 +101,7 @@ class Form
...
@@ -101,6 +101,7 @@ class Form
[
'label'
=>
__
(
'Answer'
),
'required'
=>
false
,
'name'
=>
'answer'
,
'style'
=>
'height:24em;'
]
[
'label'
=>
__
(
'Answer'
),
'required'
=>
false
,
'name'
=>
'answer'
,
'style'
=>
'height:24em;'
]
);
);
$field
->
setValue
(
$review
->
getAnswer
());
$field
->
setValue
(
$review
->
getAnswer
());
if
(
$review
->
getCustomerId
()
||
$guestEmail
)
{
if
(
$review
->
getCustomerId
()
||
$guestEmail
)
{
...
...
app/code/Magento/Review/Block/Adminhtml/Edit/Form.php
View file @
01582f4e
...
@@ -213,6 +213,15 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
...
@@ -213,6 +213,15 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
'textarea'
,
'textarea'
,
[
'label'
=>
__
(
'Review'
),
'required'
=>
true
,
'name'
=>
'detail'
,
'style'
=>
'height:24em;'
]
[
'label'
=>
__
(
'Review'
),
'required'
=>
true
,
'name'
=>
'detail'
,
'style'
=>
'height:24em;'
]
);
);
$fieldset
->
addField
(
'created_at'
,
'text'
,
[
'label'
=>
__
(
'Created_at'
),
'required'
=>
true
,
'name'
=>
'created_at'
,
]
);
$form
->
setUseContainer
(
true
);
$form
->
setUseContainer
(
true
);
$form
->
setValues
(
$review
->
getData
());
$form
->
setValues
(
$review
->
getData
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment