Pick a version and paste the following contents of the codeblock in your hosts shell
f=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; b="${f}.bak.$(date +%Y%m%d-%H%M%S)"; cp -a "$f" "$b" && [ "$(grep -Fc 'checked_command: function (orig_cmd) {' "$f")" -eq 1 ] && sed -i '0,/checked_command: function (orig_cmd) {/s//checked_command: function (orig_cmd) {\n orig_cmd();\n return;/' "$f" && grep -q $'checked_command: function (orig_cmd) {\n orig_cmd();\n return;' "$f" && systemctl restart pveproxy && echo "OK - backup: $b" || { echo "FAILED - restoring $b"; cp -a "$b" "$f"; systemctl restart pveproxy; }ā
Create the patch script:
cat >/usr/local/sbin/pve-nosub <<'EOF'
#!/bin/bash
f=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
p=$'checked_command: function (orig_cmd) {\n orig_cmd();\n return;'
[ -f "$f" ] || exit 0
grep -Fq "$p" "$f" && exit 0
[ "$(grep -Fc 'checked_command: function (orig_cmd) {' "$f")" -eq 1 ] || exit 1
sed -i '0,/checked_command: function (orig_cmd) {/s//checked_command: function (orig_cmd) {\n orig_cmd();\n return;/' "$f" &&
systemctl restart pveproxy
EOF
chmod +x /usr/local/sbin/pve-nosubRun it automatically after package updates:
echo 'DPkg::Post-Invoke { "/usr/local/sbin/pve-nosub || true"; };' \
>/etc/apt/apt.conf.d/99-pve-nosubPatch now:
/usr/local/sbin/pve-nosubAfter future Proxmox updates, the patch is automatically reapplied.
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service