Skip to content

Commit

Permalink
ошибка при выборе составного типа в элементе управления _OCombo_
Browse files Browse the repository at this point in the history
  • Loading branch information
unpete committed Dec 2, 2016
1 parent 627eb28 commit c458d11
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
12 changes: 6 additions & 6 deletions dist/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -11501,7 +11501,7 @@ function OCombo(attr){
t.getButton().style.right = "9px";
} else
t.getBase().style.marginBottom = "4px";

if(attr.left)
t.getBase().style.left = left + "px";

Expand Down Expand Up @@ -11560,7 +11560,7 @@ function OCombo(attr){
// у параметров выбора, значение живёт внутри отбора
if(_meta.choice_params)
_meta.choice_params.forEach(function (choice) {

var fval = Array.isArray(choice.path) ? {in: choice.path} : choice.path;

if(!filter[choice.name])
Expand Down Expand Up @@ -11622,7 +11622,7 @@ function OCombo(attr){
});
$p.iface.select_from_list(tlist)
.then(function(v){
if(!tobj[tfield] || (tobj[tfield] && tobj[tfield]._manager != v.mgr)){
if(tobj[tfield] && ((tobj[tfield].empty && tobj[tfield].empty()) || tobj[tfield]._manager != v.mgr)){
_mgr = v.mgr;
_obj = tobj;
_field = tfield;
Expand Down Expand Up @@ -11853,16 +11853,16 @@ function OCombo(attr){
else
Object.unobserve(_obj, observer);
}

if(t.conf && t.conf.tm_confirm_blur)
clearTimeout(t.conf.tm_confirm_blur);

_obj = null;
_field = null;
_meta = null;
_mgr = null;
_pwnd = null;

try{ _unload.call(t); }catch(e){}
};

Expand Down
2 changes: 1 addition & 1 deletion dist/metadata.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions history.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### 02.12.2016
- Подключаемый обработчик нажатия кнопок панели инструментов формы _wnd_selection_
- В атрибутах метода _Pouch.save_obj_ учтено значение _db_, что позволяет сохранить текущий объект в другой базе. Например, зарегистрировать изменения объекта с типом кеширования _ram_ на сервере
- Исправлена ошибка при выборе составного типа в элементе управления _OCombo_

### 21.11.2016
- В конструктор _OTabular_ добавлен параметр _ts_captions_, позволяющий задать индивидуальную настроку колонок табчасти
Expand Down
12 changes: 6 additions & 6 deletions lib/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -11501,7 +11501,7 @@ function OCombo(attr){
t.getButton().style.right = "9px";
} else
t.getBase().style.marginBottom = "4px";

if(attr.left)
t.getBase().style.left = left + "px";

Expand Down Expand Up @@ -11560,7 +11560,7 @@ function OCombo(attr){
// у параметров выбора, значение живёт внутри отбора
if(_meta.choice_params)
_meta.choice_params.forEach(function (choice) {

var fval = Array.isArray(choice.path) ? {in: choice.path} : choice.path;

if(!filter[choice.name])
Expand Down Expand Up @@ -11622,7 +11622,7 @@ function OCombo(attr){
});
$p.iface.select_from_list(tlist)
.then(function(v){
if(!tobj[tfield] || (tobj[tfield] && tobj[tfield]._manager != v.mgr)){
if(tobj[tfield] && ((tobj[tfield].empty && tobj[tfield].empty()) || tobj[tfield]._manager != v.mgr)){
_mgr = v.mgr;
_obj = tobj;
_field = tfield;
Expand Down Expand Up @@ -11853,16 +11853,16 @@ function OCombo(attr){
else
Object.unobserve(_obj, observer);
}

if(t.conf && t.conf.tm_confirm_blur)
clearTimeout(t.conf.tm_confirm_blur);

_obj = null;
_field = null;
_meta = null;
_mgr = null;
_pwnd = null;

try{ _unload.call(t); }catch(e){}
};

Expand Down
2 changes: 1 addition & 1 deletion lib/metadata.min.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/widgets/ocombo.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function OCombo(attr){
t.getButton().style.right = "9px";
} else
t.getBase().style.marginBottom = "4px";

if(attr.left)
t.getBase().style.left = left + "px";

Expand Down Expand Up @@ -113,7 +113,7 @@ function OCombo(attr){
// у параметров выбора, значение живёт внутри отбора
if(_meta.choice_params)
_meta.choice_params.forEach(function (choice) {

var fval = Array.isArray(choice.path) ? {in: choice.path} : choice.path;

if(!filter[choice.name])
Expand Down Expand Up @@ -175,7 +175,7 @@ function OCombo(attr){
});
$p.iface.select_from_list(tlist)
.then(function(v){
if(!tobj[tfield] || (tobj[tfield] && tobj[tfield]._manager != v.mgr)){
if(tobj[tfield] && ((tobj[tfield].empty && tobj[tfield].empty()) || tobj[tfield]._manager != v.mgr)){
_mgr = v.mgr;
_obj = tobj;
_field = tfield;
Expand Down Expand Up @@ -406,16 +406,16 @@ function OCombo(attr){
else
Object.unobserve(_obj, observer);
}

if(t.conf && t.conf.tm_confirm_blur)
clearTimeout(t.conf.tm_confirm_blur);

_obj = null;
_field = null;
_meta = null;
_mgr = null;
_pwnd = null;

try{ _unload.call(t); }catch(e){}
};

Expand Down

0 comments on commit c458d11

Please sign in to comment.