Commit db75f382 authored by William Grzybowski's avatar William Grzybowski
Browse files

fix(gui): use correct parentdata when editing dataset

Ticket:	#23196
parent b960cc7d
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -1279,7 +1279,10 @@ class ZFSDataset(Form):
self._create = kwargs.pop('create', True)
super(ZFSDataset, self).__init__(*args, **kwargs)
_n = notifier()
parentdata = _n.zfs_get_options(self._fs)
if self._create:
parentdata = _n.zfs_get_options(self._fs)
else:
parentdata = _n.zfs_get_options(self._fs.rsplit('/', 1)[0])
self.fields['dataset_atime'].choices = _inherit_choices(
choices.ZFS_AtimeChoices,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment