Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
dbc1c341
Commit
dbc1c341
authored
Jun 02, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: return empty data if datetimefield has no value
parent
6295d6c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
...Item/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
+12
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
View file @
dbc1c341
...
@@ -284,6 +284,15 @@
...
@@ -284,6 +284,15 @@
select = this.element.querySelector("select");\n
select = this.element.querySelector("select");\n
result[field_json.subfield_timezone_key] = select.options[select.selectedIndex].value;\n
result[field_json.subfield_timezone_key] = select.options[select.selectedIndex].value;\n
}\n
}\n
} else {\n
//if no value, return empty data\n
if (field_json.date_only === 0) {\n
result[field_json.subfield_hour_key] = "";\n
result[field_json.subfield_minute_key] = "";\n
}\n
result[field_json.subfield_year_key] = "";\n
result[field_json.subfield_month_key] = "";\n
result[field_json.subfield_day_key] = "";\n
}\n
}\n
return result;\n
return result;\n
})\n
})\n
...
@@ -493,7 +502,7 @@
...
@@ -493,7 +502,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
xiaowu
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -507,7 +516,7 @@
...
@@ -507,7 +516,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
1.29666.30820.17834
</string>
</value>
<value>
<string>
94
3.415.21085.47820
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -525,7 +534,7 @@
...
@@ -525,7 +534,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
25561983.22
</float>
<float>
14
33234446.35
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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