Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding id in the form action for first save. #210

Merged
merged 1 commit into from
Aug 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions component/admin/models/package.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public function getItem()
$package->manifest = null;
$package->title = null;
$package->description = null;
$package->id = $id;

if (!empty($id))
{
Expand Down
1 change: 1 addition & 0 deletions component/admin/models/packagefile.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ public function getItem()
$package->standalone = true;
$package->manifest = null;
$package->description = null;
$package->id = $id;

if (!empty($id))
{
Expand Down
2 changes: 1 addition & 1 deletion component/admin/views/language/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
</script>

<form action="" method="post" name="adminForm" id="localise-language-form" class="form-validate">
<form action="<?php echo JRoute::_('index.php?option=com_localise&view=language&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="localise-language-form" class="form-validate">
<div class="row-fluid">
<!-- Begin Localise Language -->
<div class="span12 form-horizontal">
Expand Down
2 changes: 1 addition & 1 deletion component/admin/views/package/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
}
</script>
<form action="" method="post" name="adminForm" id="localise-package-form" class="form-validate">
<form action="<?php echo JRoute::_('index.php?option=com_localise&view=package&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="localise-package-form" class="form-validate">
<div class="row-fluid">
<!-- Begin Localise Package -->
<div class="span12 form-horizontal">
Expand Down
2 changes: 1 addition & 1 deletion component/admin/views/packagefile/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
}
</script>
<form action="" method="post" name="adminForm" id="localise-package-form" class="form-validate">
<form action="<?php echo JRoute::_('index.php?option=com_localise&view=packagefile&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="localise-package-form" class="form-validate">
<div class="row-fluid">
<!-- Begin Localise Package -->
<div class="span12 form-horizontal">
Expand Down