{"action":"created","issue":{"url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/issues/376","labels_url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/issues/376/comments","events_url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/issues/376/events","html_url":"https://github.com/xDrivenDevelopment/xUnitFor1C/issues/376","id":53178882,"number":376,"title":"Создание данных на основе макета, при создании элемента справочника группы, очищаются табличные части которых нет.","user":{"login":"IvanSub","id":7333665,"avatar_url":"https://avatars.githubusercontent.com/u/7333665?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanSub","html_url":"https://github.com/IvanSub","followers_url":"https://api.github.com/users/IvanSub/followers","following_url":"https://api.github.com/users/IvanSub/following{/other_user}","gists_url":"https://api.github.com/users/IvanSub/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanSub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanSub/subscriptions","organizations_url":"https://api.github.com/users/IvanSub/orgs","repos_url":"https://api.github.com/users/IvanSub/repos","events_url":"https://api.github.com/users/IvanSub/events{/privacy}","received_events_url":"https://api.github.com/users/IvanSub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/labels/%D0%93%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BC%D0%B0%D0%BA%D0%B5%D1%82%D0%B0%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85","name":"Генерация макета данных","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"artbear","id":2920817,"avatar_url":"https://avatars.githubusercontent.com/u/2920817?v=3","gravatar_id":"","url":"https://api.github.com/users/artbear","html_url":"https://github.com/artbear","followers_url":"https://api.github.com/users/artbear/followers","following_url":"https://api.github.com/users/artbear/following{/other_user}","gists_url":"https://api.github.com/users/artbear/gists{/gist_id}","starred_url":"https://api.github.com/users/artbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artbear/subscriptions","organizations_url":"https://api.github.com/users/artbear/orgs","repos_url":"https://api.github.com/users/artbear/repos","events_url":"https://api.github.com/users/artbear/events{/privacy}","received_events_url":"https://api.github.com/users/artbear/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/milestones/24","labels_url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/milestones/24/labels","id":971968,"number":24,"title":"2.7.2.0","description":"","creator":{"login":"artbear","id":2920817,"avatar_url":"https://avatars.githubusercontent.com/u/2920817?v=3","gravatar_id":"","url":"https://api.github.com/users/artbear","html_url":"https://github.com/artbear","followers_url":"https://api.github.com/users/artbear/followers","following_url":"https://api.github.com/users/artbear/following{/other_user}","gists_url":"https://api.github.com/users/artbear/gists{/gist_id}","starred_url":"https://api.github.com/users/artbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artbear/subscriptions","organizations_url":"https://api.github.com/users/artbear/orgs","repos_url":"https://api.github.com/users/artbear/repos","events_url":"https://api.github.com/users/artbear/events{/privacy}","received_events_url":"https://api.github.com/users/artbear/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":16,"state":"open","created_at":"2015-02-09T15:57:36Z","updated_at":"2015-02-23T08:19:50Z","due_on":"2015-02-25T21:00:00Z","closed_at":null},"comments":6,"created_at":"2014-12-31T11:03:56Z","updated_at":"2015-02-23T20:15:57Z","closed_at":null,"body":"Создание данных на основе макета, при создании элемента справочника группы, очищаются табличные части которых нет(не доступны для групп).\r\n\r\nФункция СоздатьОбъект_Справочник\r\n\"\r\nДля каждого мдТабЧасть из Объект.Метаданные().ТабличныеЧасти Цикл\r\n\t\tОбъект[мдТабЧасть.Имя].Очистить();\r\n\tКонецЦикла;\r\n\"\r\n\r\n//Заполняем реквизиты справочника\r\n\tНаборМдРеквизитов = НаборРеквизитовМетаданных(ПротоОбъект.Тип, Объект.Метаданные());\r\n\tДля каждого стрПоле Из ПротоОбъект.ПоляОбъекта Цикл\r\n\t\tОбъект[стрПоле.Имя] = ПолучитьЗначениеПоля(ПротоДанные,стрПоле,НаборМдРеквизитов);\r\n\tКонецЦикла;\r\n\t\r\n\tДля каждого мдТабЧасть из Объект.Метаданные().ТабличныеЧасти Цикл\r\n\t\tОбъект[мдТабЧасть.Имя].Очистить();\r\n\tКонецЦикла;\r\n\tДля каждого ТабЧасть из ПротоОбъект.ТабличныеЧасти Цикл\r\n\t\tДля каждого СтрокаТабЧасти Из ТабЧасть.Значение Цикл\r\n\t\t\tСтрокаТабЧастиОбъекта = Объект[ТабЧасть.Ключ].Добавить();\r\n\t\t\tобъектМетаданныеТабличнаяЧасть = Объект.Метаданные().ТабличныеЧасти[ТабЧасть.Ключ];\r\n\t\t\tНаборМдРеквизитовТЧ = объектМетаданныеТабличнаяЧасть.Реквизиты;\r\n\t\t\tДля каждого стрПоле Из СтрокаТабЧасти Цикл\r\n\t\t\t\tСтрокаТабЧастиОбъекта[стрПоле.Имя] = ПолучитьЗначениеПоля(ПротоДанные,стрПоле,НаборМдРеквизитовТЧ);\r\n\t\t\tКонецЦикла;\r\n\t\tКонецЦикла;\r\n\tКонецЦикла;"},"comment":{"url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/issues/comments/75622559","html_url":"https://github.com/xDrivenDevelopment/xUnitFor1C/issues/376#issuecomment-75622559","issue_url":"https://api.github.com/repos/xDrivenDevelopment/xUnitFor1C/issues/376","id":75622559,"user":{"login":"artbear","id":2920817,"avatar_url":"https://avatars.githubusercontent.com/u/2920817?v=3","gravatar_id":"","url":"https://api.github.com/users/artbear","html_url":"https://github.com/artbear","followers_url":"https://api.github.com/users/artbear/followers","following_url":"https://api.github.com/users/artbear/following{/other_user}","gists_url":"https://api.github.com/users/artbear/gists{/gist_id}","starred_url":"https://api.github.com/users/artbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artbear/subscriptions","organizations_url":"https://api.github.com/users/artbear/orgs","repos_url":"https://api.github.com/users/artbear/repos","events_url":"https://api.github.com/users/artbear/events{/privacy}","received_events_url":"https://api.github.com/users/artbear/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T20:15:57Z","updated_at":"2015-02-23T20:15:57Z","body":"Нет, сейчас эта ошибка повторяется.\r\nПроблема в том, что при создании макета из боевых данных не устанавливается режим Группа.\r\n@ValeraS этой проблемой не занимайся.\r\nУ меня уже есть пулл-реквест не через Гитхаб, в котором этот баг поправлен.\r\nСам буду мержить."}}