Skip to content

Commit

Permalink
Merge pull request #310 from Mognom/FixTabCreation
Browse files Browse the repository at this point in the history
Fix tab creation using REST API
  • Loading branch information
aarranz committed Oct 16, 2018
2 parents e02045c + c42d690 commit 129b15b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wirecloud/platform/workspace/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ def create(self, request, workspace_id):

tab_title = data.get('title')
tab_name = data.get('name')

if tab_title == '':
tab_title = tab_name

try:
tab = createTab(tab_title, workspace, name=tab_name)
except IntegrityError:
Expand Down

0 comments on commit 129b15b

Please sign in to comment.