Bug 1376623

Summary: hidden rows in datatables are deleted on form submission
Product: [Community] Bugzilla Reporter: Jeff Fearn 🐞 <jfearn>
Component: User InterfaceAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.0CC: huiwang, mtahir, qgong
Target Milestone: 5.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.0.3-rh8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-12 10:59:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeff Fearn 🐞 2016-09-16 00:23:25 UTC
Description of problem:
When a field is hidden in a database table and a form is submitted, any rows hidden, due to pagination or filtering, are deleted.

Version-Release number of selected component (if applicable):
5.0

How reproducible:
Always

Steps to Reproduce:
1. Go to any page where datatables is being used in a form
2. filter table so some rows are hidden
3. change something and click submit

Actual results:
Hidden rows are deleted

Expected results:
Hidden rows are treated as normal.

Additional info:
Edit users is a good example, the group permissions are paginated, adding a user to a new group and clicking submit removes them from any non-visible group.

Comment 1 Rony Gong 🔥 2016-10-09 02:28:57 UTC
Tested on QA environment(5.0.3-rh8)
Result: Failed
Steps:
1. Go to edituser page where datatables is being used in a form(eg: bmeng)
2. filter table so some rows are hidden
3. change something and click submit
==>Hidden rows are deleted

Comment 2 Rony Gong 🔥 2016-10-12 08:48:24 UTC
Tested on QA environment(5.0.3-rh9)
Result: Pass
Steps:
1. Go to edituser page where datatables is being used in a form(eg: bmeng)
2. filter table so some rows are hidden
3. change something and click submit
==>Hidden rows not deleted.