Skip to content

Commit

Permalink
[qacode] fix for issue #282 (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
netzulo committed May 22, 2019
1 parent a6625bf commit b158bd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed

### Fixed
- Can't load ControlTable si no existe un THEAD y existe TBODY #282

### Removed

Expand Down
3 changes: 2 additions & 1 deletion qacode/core/webs/controls/control_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def __load_table_html5__(self):
if len(self.tbodies) > 1:
raise ControlException(MSG.CT_TBL2ORMORETBODIES)
rows = []
rows.append(self.__get_row__(self.thead.find_child("tr"), "th"))
if self.thead is not None:
rows.append(self.__get_row__(self.thead.find_child("tr"), "th"))
for ctl_row in self.tbodies[0].find_children("tr"):
rows.append(self.__get_row__(ctl_row, "td"))
return rows
Expand Down

0 comments on commit b158bd6

Please sign in to comment.