Просмотр исходного кода

[fix] desktop icon missing filter

version-14
Rushabh Mehta 9 лет назад
Родитель
Сommit
5bd744df32
5 измененных файлов: 10 добавлений и 7 удалений
  1. +4
    -1
      frappe/change_log/v6/v6_27_1.md
  2. +1
    -1
      frappe/desk/doctype/desktop_icon/desktop_icon.py
  3. +0
    -1
      frappe/public/css/desk.css
  4. +5
    -3
      frappe/public/js/frappe/form/control.js
  5. +0
    -1
      frappe/public/less/desk.less

+ 4
- 1
frappe/change_log/v6/v6_27_1.md Просмотреть файл

@@ -1,3 +1,6 @@
- Configurable Desktop
- Add any Documents, Reports, Modules, Pages to the desktop
- Remove all the unwanted icons
- Remove all the unwanted icons
- **Module Page New Design**
- New module design now shows all documents in a module together
- [Read the Details](https://frappe.io/blog/erpnext-features/configurable-desktop)

+ 1
- 1
frappe/desk/doctype/desktop_icon/desktop_icon.py Просмотреть файл

@@ -87,7 +87,7 @@ def get_desktop_icons(user=None):
@frappe.whitelist()
def add_user_icon(label, link, type, _doctype):
'''Add a new user desktop icon to the desktop'''
icon_name = frappe.db.exists('Desktop Icon', {'standard': 0, 'link': link})
icon_name = frappe.db.exists('Desktop Icon', {'standard': 0, 'link': link, 'owner': frappe.session.user})
if icon_name and frappe.db.get_value('Desktop Icon', icon_name, 'hidden'):
frappe.db.set_value('Desktop Icon', icon_name, 'hidden', 0)
clear_desktop_icons_cache()


+ 0
- 1
frappe/public/css/desk.css Просмотреть файл

@@ -440,7 +440,6 @@ textarea.form-control {
}
.open-notification {
position: relative;
top: -2px;
left: 2px;
display: inline-block;
background: #ff5858;


+ 5
- 3
frappe/public/js/frappe/form/control.js Просмотреть файл

@@ -1302,11 +1302,13 @@ frappe.ui.form.ControlDynamicLink = frappe.ui.form.ControlLink.extend({
if(this.df.get_options) {
return this.df.get_options();
}
if (this.docname==null && cur_dialog!=null){ //for dialog box
if (this.docname==null && cur_dialog) {
//for dialog box
return cur_dialog.get_value(this.df.options)
}
if (cur_frm==null){//for list page
return $("input[data-fieldname*="+this.df.options+"]").val()
if (cur_frm==null && cur_list){
//for list page
return cur_list.wrapper.find("input[data-fieldname*="+this.df.options+"]").val()
}
var options = frappe.model.get_value(this.df.parent, this.docname, this.df.options);
// if(!options) {


+ 0
- 1
frappe/public/less/desk.less Просмотреть файл

@@ -278,7 +278,6 @@ textarea.form-control {

.open-notification {
position:relative;
top:-2px;
left: 2px;
display:inline-block;
background:#ff5858;


Загрузка…
Отмена
Сохранить