Giter Club home page Giter Club logo

Comments (8)

Archibald111 avatar Archibald111 commented on May 24, 2024

It works as describes in the manual. As long you do not have data for the assigned to field in your import data the current user will be used.

from berlicrm.

ralphkretzschmar avatar ralphkretzschmar commented on May 24, 2024

Thanks for the answer but:
I want to import additional data into existing accounts but the "Assigned User" gets overwritten. Is there any possibility to import additional infomation to existing accounts WITHOUT changing the existing user in "assigned to"?
Thanks for your help

from berlicrm.

Archibald111 avatar Archibald111 commented on May 24, 2024

add the assigned to field contents to your import data

from berlicrm.

ralphkretzschmar avatar ralphkretzschmar commented on May 24, 2024

so i have to export the assigned field from those accounts first
then merge it with the update information and then reimport it? correct?

from berlicrm.

ralphkretzschmar avatar ralphkretzschmar commented on May 24, 2024

could you tell me, where i can find these modifications to disable it?
i don't understand why a field is modified even it is not mentioned to be updated in the import file?

help appreciated :)

from berlicrm.

ralphkretzschmar avatar ralphkretzschmar commented on May 24, 2024

i've tried it with vt6.5 and the behavior is not the same. when i upate records with merge, the field "assigned to" is not touched - how expected.
if someone could give me a hint where to look at it would be great :)

from berlicrm.

ralphkretzschmar avatar ralphkretzschmar commented on May 24, 2024

if found the regarding problem in include/Webservices/VtigerCRMObject.php

around line 145 - its this part:

public function revise($element, $meta){
	global $adb;
	$error = false;

	$error = $this->read($this->getObjectId());
	//crm-now: after read() the values will be in DB format, to save user format is expected, other functions (create(), update()) will always take values from request and sanitize those to user format
	$this->instance->column_fields = DataTransform::sanitizeForInsert($this->instance->column_fields, $meta);

after removing $meta & $this->instance->column_fields = DataTransform::sanitizeForInsert($this->instance->column_fields, $meta) it is working as expected :)

from berlicrm.

AlexKay85 avatar AlexKay85 commented on May 24, 2024

Greetings,

thank you for your input.
We've provided a fix (06cea75) for this issue.
sanitizeForInsert() expects id values in Webservice format but when values of the original object are read the values won't have any Webservice prefixes.
Same as with other reference fields we will skip conversion now.

from berlicrm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.